package com.yue.lin.mapper;

import com.yue.lin.entity.Teacher;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author zhengyl
 * @description
 * @date 2020-04-23 9:48
 */
//@Mapper
public interface TeacherMapper {
    //一对多 关联查询student
    Teacher get(String id);

    //一对多 关联查询student
    List<Teacher> list(String id);

    //一对一 关联查询course
    Teacher get2(String id);

    //插入
    int add(Teacher teacher);

    //批量插入
    int batchInsert(List<Teacher> list);
}
